package com.sunny.fetch.dao.schema;

import com.sunny.fetch.dao.enumtype.DataType;

/**
 * @Author: sublun
 * @Date: 2021/4/2 17:12
 */
public class TableField {
    private String name;
    private DataType type;
    private boolean isNull;
    private String extra;

    public TableField(){

    }

    public TableField(String name, DataType type, boolean isNull, String extra) {
        this.name = name;
        this.type = type;
        this.isNull = isNull;
        this.extra = extra;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DataType getType() {
        return type;
    }

    public void setType(DataType type) {
        this.type = type;
    }

    public boolean isNull() {
        return isNull;
    }

    public void setNull(boolean aNull) {
        isNull = aNull;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }
}
